//
//  HdTableViewCell.m
//  豆瓣
//
//  Created by hy on 15/12/31.
//  Copyright © 2015年 hongyu. All rights reserved.
//

#import "HdTableViewCell.h"

@implementation HdTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
    }
    return self;
}
- (void)dealloc {
    [_a release];
    [_b release];
    [_c release];
    [_sb release];
    [_ziLable release];
    [_leixing release];
    [_lanImage release];
    [_baiImage release];
    [_timeLabel release];
    [_titleLabel release];
    [_shuzuLable release];
    [_addressLabel release];
    [super dealloc];
}
- (void)creatCell {
    self.lanImage = [[UIImageView alloc] init];
    [self.contentView addSubview:_lanImage];
    [_lanImage release];
    
    self.baiImage = [[UIImageView alloc] init];
    [self.contentView addSubview:_baiImage];
    [_baiImage release];
    
    self.a = [[UIImageView alloc] init];
    [self.contentView addSubview:_a];
    [_a release];
    self.b = [[UIImageView alloc] init];
    [self.contentView addSubview:_b];
    [_b release];
    self.c = [[UIImageView alloc] init];
    [self.contentView addSubview:_c];
    [_c release];
    self.titleLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_titleLabel];
    [_titleLabel release];
    self.timeLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_timeLabel];
    [_timeLabel release];
    self.addressLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_addressLabel];
    [_addressLabel release];
    self.leixing = [[UILabel alloc] init];
    [self.contentView addSubview:_leixing];
    [_leixing release];
    
    self.ziLable = [[UILabel alloc] init];
    [self.contentView addSubview:_ziLable];
    [_ziLable release];
    self.shuzuLable = [[UILabel alloc] init];
    [self.contentView addSubview:_shuzuLable];
    [_shuzuLable release];
    
    self.sb = [[UIImageView alloc] init];
    [self.contentView addSubview:_sb];
    [_sb release];
    
    
}
- (void)layoutSubviews {
    [super layoutSubviews];
    _lanImage.frame = CGRectMake(10, 10, self.contentView.frame.size.width - 20, self.contentView.frame.size.height - 20);
    _baiImage.frame = CGRectMake(12, 50, self.lanImage.frame.size.width - 4, self.lanImage.frame.size.height - 40);
    
    _a.frame = CGRectMake(15, 50, 25, 25);
    _b.frame = CGRectMake(15, 80, 25, 25);
    _c.frame = CGRectMake(15, 110, 25, 25);
    
    _titleLabel.frame = CGRectMake(15, 10, 250, 40);
    _timeLabel.frame = CGRectMake(40, 47, 200, 30);
    _timeLabel.font = [UIFont systemFontOfSize:15];
    _addressLabel.frame = CGRectMake(40, 77, 200, 30);
    _addressLabel.font = [UIFont systemFontOfSize:15];
    _leixing.frame = CGRectMake(40, 107, 200, 30);
    _leixing.font = [UIFont systemFontOfSize:15];
    
    _ziLable.frame = CGRectMake(15, 140, 150, 30);
    _ziLable.backgroundColor = [UIColor clearColor];
    _ziLable.font = [UIFont systemFontOfSize:15];
    
    _shuzuLable.frame = CGRectMake(65, 140, 150, 30);
    _shuzuLable.font = [UIFont systemFontOfSize:15];
    _shuzuLable.textColor = [UIColor redColor];
    
    _sb.frame = CGRectMake(251, 51, 111, 127);
    }




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
